package com.yuanfengerp.SalesOrder.service;

import com.yuanfengerp.SalesOrder.model.SalesOrder;
import com.yuanfengerp.basicInfoManage.customerInfo.model.Customerinfo;
import com.yuanfengerp.basicInfoManage.warehouseinfo.model.Warehouseinfo;
import com.yuanfengerp.publicUtil.Result;

import java.util.ArrayList;
import java.util.List;

public interface ISalesOrderService {
    //查询所有仓库信息
    ArrayList<Warehouseinfo> getWarehouseList();
    //根据仓库编号，仓库名称查询仓库信息
    Warehouseinfo getWarehouse(String warehouse_ID,String warehouse_name);
    //查询客户信息
    ArrayList<Customerinfo> getCustomerList();
    //根据客户编号，客户名称查询客户信息
    Customerinfo getCustomer(String customer_ID,String customer_name);
    //查询销售订单信息
    ArrayList<SalesOrder> getSalesOrderList(int pageSize, int offset);
    //根据产品编号，仓库编号，客户编号查询销售订单信息
    ArrayList<SalesOrder> getSalesOrder(String prod_id, String warehouse_ID, String customer_id);
    Result<SalesOrder> insertSalesOrder(SalesOrder salesOrder);
    String updateStatus(int status);
    Result<SalesOrder> deleteSalesOrder(List<String> prod_id);
}
